package enumDemo;

public class Test {
    public static void main(String[] args) {
        check(Constant.BOY);
    }

    public static void check(Constant constant){
        switch (constant){
            case BOY :
                System.out.println("hhh");
                break;
            case GIRL:
                System.out.println("nnn");
                break;
        }
    }
}
